$class-prefix-badge: rt-badge;

.#{$class-prefix-badge}-wrapper {
  display: inline-block;
  position: relative;
}

.#{$class-prefix-badge} {
  --right: 0;
  --top: 0;
  --color: var(--rt-badge-color, var(--rt-color-highlight));

  display: inline-flex;
  vertical-align: middle;
  box-sizing: content-box;
  border-radius: 100px;
  background-color: var(--color);

  &-content {
    color: var(--rt-color-text-light-solid);
    box-sizing: border-box;
    min-width: 14px;
    padding: 3px;
    font-size: var(--rt-size-10);
    line-height: 1;
    white-space: nowrap;
    font-weight: normal;
    text-align: center;
  }

  &-abs {
    position: absolute;
    right: var(--right);
    top: var(--top);
    transform: translate(50%, -50%);
  }

  &-dot {
    min-width: 14px;
    width: 14px;
    height: 14px;
    border-radius: 7px;
  }

  &-bordered {
    border: solid 1px var(--rt-color-text-light-solid);
  }
}
